//获得角色
(function () {
    var io = ppt.io;
    function NewRole(haveRole) {
        NewRole.super(this);
        this.width = 1334;
        this.height = Laya.stage.height;
        this.haveRole = haveRole;
        this.init();
    }
    //继承
    Laya.class(NewRole, "Alert.NewRole", Laya.Sprite);
    var _proto = NewRole.prototype;
    _proto.destroy = function () {
        Laya.Sprite.prototype.destroy.call(this, true);
       
        this.haveRole = null;
    }
    //初始化
    _proto.init = function () {
        var Have = new ui.Alert.HaveRoleUI();
        Have.x = Laya.stage.width / 2 - Have.width / 2;
        Have.y = 100;
        Have.addChild(this.haveRole);
        this.addChild(Have);
    }
})();
